SUBDIRS = po src

INTLTOOL_FILES = \
intltool-extract.in \
intltool-merge.in \
intltool-update.in

if INSTALL_DESKTOP_FILES
  desktopdir = $(datadir)/applications
  desktop_DATA = gpyp.desktop
endif

if OS_DARWIN
  applescriptdir = $(pkglibdir)/applescript
  applescript_DATA = safari.scpt
endif


EXTRA_DIST = $(INTLTOOL_FILES) autogen.sh \
migemo_create_user_dict.rb \
cmigemo/install.sh cmigemo/unix.mak.diff cmigemo/romaji.c.diff \
gpyp.desktop.in peercast-qt0014-core.diff debian \
statistic/statistic.c statistic/Makefile statistic/USAGE statistic/files \
safari.scpt

gpyp.desktop: gpyp.desktop.in Makefile
	sed -e 's,[@]bindir[@],$(bindir),g' \
	    -e 's,[@]datadir[@],$(datadir),g' < $< > $@

CLEANFILES = gpyp.desktop

DISTCLEANFILES = ... \
intltool-extract \
intltool-merge \
intltool-update \
po/.intltool-merge-cache
